package com.heima.utils.thread;

public class WeMediaThreadLocalUtil {
    private static final ThreadLocal<Integer> t1 = new ThreadLocal<>();

    //存数据
    public static void set(Integer id){
        t1.set(id);
    }

    //取数据
    public static Integer get(){
        return t1.get();
    }

    //清除数据
    public static void clear(){
        t1.remove();
    }
}
